program Project2;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  fin, fout: textfile;
  i, j, n, k, t: Integer;
  mass: array of integer;
begin
  AssignFile(fin, 'input.txt');
  Reset(fin);
  AssignFile(fout, 'output.txt');
  Rewrite(fout);
  Readln(fin, n);
  SetLength(mass, n);
  for i:=0 to n-1 do
    read(fin, mass[i]);
  for i:=0 to n-2 do
  begin
    k:=i;
    for j:=i+1 to n-1 do
       if (mass[j]<mass[k]) then
         k:=j;
    t:=mass[k];
    mass[k]:=mass[i];
    mass[i]:=t;
  end;
  for i:=0 to n-1 do
    Writeln(fout, mass[i]);
  CloseFile(fin);
  CloseFile(fout);
end.
